package com.example.factory;

/**
 * Created by Risky57 on 2017/4/28.
 */

public class FactoryDemo {
    public static void main (String[] args) {

        Store store = new Store();
        store.setBehavior(new SaleFull());
        float money = store.sell(3, 200);
        System.out.println(money);

    }
}
